﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Bookvar.ObjectModel.Collections
{
    [Serializable]
    [CollectionDataContract(ItemName = "CollaborationUser", ValueName = "User", KeyName = "ID")]
    public class CollaborationUserCollection : ObservableKeyedCollection<Guid, CollaborationUser>
    {
        public CollaborationUserCollection()
        {
        }

        public CollaborationUserCollection( IEnumerable<CollaborationUser> items ) : base( items )
        {
        }

        protected override Guid GetKeyForItem(CollaborationUser item)
        {
            return item.ID;
        }


    }
}